package com.shopping.mall.core.module.saleData.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;

@Data
public class SaleDataQueryVO {

    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp date;

    @ApiModelProperty(value = "已订购商品销售额")
    private Double orderSale;

    @ApiModelProperty(value = "订购商品数量")
    private Integer goodsNum;

    @ApiModelProperty(value = "订单数量")
    private Integer orderNum;

    @ApiModelProperty(value = "页面浏览量")
    private Integer pageViews;

    @ApiModelProperty(value = "访问量")
    private Integer visitNum;

    @ApiModelProperty(value = "转化率")
    private Double convertRate;

    @ApiModelProperty(value = "已退款商品数量")
    private Integer refundGoodsNum;

    @ApiModelProperty(value = "退款率")
    private Double refundRate;

    @ApiModelProperty(value = "已发货商品销售额")
    private Double deliverSale;

    @ApiModelProperty(value = "已发货商品数量")
    private Integer deliverGoodsNum;

    @ApiModelProperty(value = "已发货订单数量")
    private Integer deliverOrderNum;

    @ApiModelProperty(value = "开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date before;

    @ApiModelProperty(value = "结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date after;
}
